package com.youlai.boot.daily.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.daily.model.entity.DailyRecord;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.daily.model.query.DailyRecordQuery;
import com.youlai.boot.daily.model.vo.DailyRecordVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 日常记录Mapper接口
 *
 * @author cuisheng
 * @since 2025-04-02 22:51
 */
@Mapper
public interface DailyRecordMapper extends BaseMapper<DailyRecord> {

    /**
     * 获取日常记录分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<DailyRecordVO> getDailyRecordPage(Page<DailyRecordVO> page, DailyRecordQuery queryParams);

}
